<?php

namespace App\Api\Repositories\Search;

use App\Models\Search\SearchResult as Model;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Redis;

class SearchResultRepositories
{
    protected $eloquentClass = Model::class;

    public function create_data($search_id, $result_id, $type)
    {
        return $this->eloquentClass::create([
            'search_id' => $search_id,
            'result_id' => $result_id,
            'type' => $type
        ]);
    }
}
